from slider.models import *
from django.template import loader, Context

def get_slider():
    items = Slider.objects.order_by('pos')
    temp = loader.get_template('slider.html')
    return temp.render(Context({'items':items}))